package com.jueye.springboot01.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;


import javax.validation.constraints.*;
import java.util.List;
import java.util.Map;

/**
 * @Description
 * @ClassName Dog
 * @Author User
 * @date 2021.02.01 10:42
 */
@Component
@ConfigurationProperties(prefix = "dog")
@Data
@Validated
public class Dog {
    private String name;
    private Integer age;
    private Map<String,Object> maps;
    private List<Object> lists;
    @Email
    private String email;
    @Min(value = 1)
    private Integer num;

    /*public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }*/

    /*@Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }*/
}
